import request from '@/utils/request'

// 查询食品安全应急预案列表
export function listOpmFoodSafeResp(query) {
  return request({
    url: '/food/opmFoodSafeResp/list',
    method: 'get',
    params: query
  })
}

// 查询食品安全应急预案详细
export function getOpmFoodSafeResp(id) {
  return request({
    url: '/food/opmFoodSafeResp/' + id,
    method: 'get'
  })
}

// 新增食品安全应急预案
export function addOpmFoodSafeResp(data) {
  return request({
    url: '/food/opmFoodSafeResp',
    method: 'post',
    data: data
  })
}

// 修改食品安全应急预案
export function updateOpmFoodSafeResp(data) {
  return request({
    url: '/food/opmFoodSafeResp',
    method: 'put',
    data: data
  })
}

// 删除食品安全应急预案
export function delOpmFoodSafeResp(id) {
  return request({
    url: '/food/opmFoodSafeResp/' + id,
    method: 'delete'
  })
}
